#ifndef _CMD_OP_CODE_H_
#define _CMD_OP_CODE_H_

typedef enum _CommandCode
{
  CMD_CAM_AWTK_SWITCH_WELCOME_PAGE = 0x0180,           // 欢迎页面
  CMD_CAM_AWTK_SWITCH_GO_TIP_PAGE = 0x0181,            // 提示车辆通行页面
  CMD_CAM_AWTK_SWITCH_ROLL_DOWN_WINDOW_PAGE = 0x0182,  // 提示下降窗户页面
  CMD_CAM_AWTK_SWITCH_ENTER_NUM_PEOPLE_PAGE = 0x0183,  // 提示选择人员页面
  CMD_CAM_AWTK_SWITCH_IRIS_FAIL_PAGE = 0x0184,         // 虹膜失败页面
  CMD_CAM_AWTK_SWITCH_PASSPORT_EXPIRED_PAGE = 0x0185,  // 提示卡过期页面
  CMD_CAM_AWTK_SWITCH_TAKE_PASSPORT_PAGE = 0x0186,     // 证件读取成功页面
  CMD_CAM_AWTK_SWITCH_TRY_AGAIN_PAGE = 0x0187,         // 提示获取车辆信息失败页面
  CMD_CAM_AWTK_SWITCH_DO_NO_MOVE_PAGE = 0x0188,        // 请勿移动证件页面
  CMD_CAM_AWTK_SWITCH_MANUAL_LANE_PAGE = 0x0189,       // 提示车辆退出通道页面
  CMD_CAM_AWTK_SWITCH_WAIT_PAGE = 0x018a,              // 提示等待页面

  CMD_CAM_AWTK_SWITCH_PUT_PASSPORT_PAGE = 0x018d,      // 提示证件读取页面
  CMD_CAM_AWTK_SWITCH_SACN_PUT_PASSPORT_PAGE = 0x018E, // 证件读取失败页面

  CMD_CAM_AWTK_SWITCH_SYSTERN_ERROR_PAGE       	= 0x018f,       //提示设备错误页面  
  CMD_CAM_AWTK_SWITCH_SERVICE_STOP              = 0x0190,       //提示暂停服务页面
  CMD_CAM_AWTK_SWITCH_FACE_EXPIRED              = 0x0191,       //提示人脸识别错误
  CMD_CAM_AWTK_SWITCH_CARD_READING_FAILED       = 0x0192,       //提示证件读取失败
  CMD_CAM_AWTK_SWITCH_GET_VEHICLE_FAILED        = 0x0193,       //获取车辆信息失败提示
  CMD_CAM_AWTK_SWITCH_GET_VEHICLE_NOT_FILED     = 0x0194,       //提示车牌号未备案
  CMD_CAM_AWTK_SWITCH_CHECk_ABNORMAL            = 0x0195,       //验放异常
  CMD_CAM_AWTK_SWITCH_INFO_ABNORMAL             = 0x0196,       //信息异常
  CMD_CAM_AWTK_SWITCH_PSG_ROLL_DOWN_WINDOW_PAGE = 0x0197,//提示乘客摇下车窗
  CMD_CAM_AWTK_SWITCH_PSG_ROKER_UP_DOWN_PAGE = 0x0198,//提示乘客上下摇杆移动到合理虹膜采集区域

  CMD_CAM_AWTK_IRIS_LABEL_OPEN_EYES       	    = 0x0170,       //请睁大眼睛  
  CMD_CAM_AWTK_IRIS_LABEL_COME_CLOSER       	  = 0x0171,       //请靠近
  CMD_CAM_AWTK_IRIS_LABEL_MOVE_BACK       	    = 0x0172,       //请远离
  CMD_CAM_AWTK_IRIS_LABEL_TAKE_OFF_GLASSES      = 0x0173,       //摘下眼镜
  CMD_CAM_AWTK_IRIS_LABEL_REMOVE_FACE_COVER     = 0x0174,       //摘下面罩
  CMD_CAM_AWTK_IRIS_LABEL_TAKE_OFF_MASK         = 0x0175,       //摘下口罩
  CMD_CAM_AWTK_IRIS_FRAME_RED                   = 0x0176,       //画红框
  CMD_CAM_AWTK_IRIS_FRAME_YELLOW                = 0x0177,       //画黄框
  CMD_CAM_AWTK_IRIS_FRAME_GREEN                 = 0x0178,        //画绿框
  CMD_CAM_AWTK_IRIS_DETECT_SUCCESS              = 0x0179,       //虹膜检测成功
  CMD_CAM_AWTK_IRIS_DETEC_FALSE                 = 0x017A,        //虹膜检测失败
  CMD_CAM_AWTK_IRIS_SCORE                       = 0x017B,        //虹膜分数


  CMD_CAM_AWTK_SWITCH_IRIS_TIPS_PAGE   = 0x018c,         // 提示人脸识别页面，人脸采集流程，同步开启虹膜预览
  CMD_CAM_AWTK_SWITCH_IRIS_ACT_PAGE    = 0x018b,         // 虹膜识别页面,虹膜采集流程
  CMD_CAM_AWTK_IRIS_DEVICE_OPEN        = 0x0220,         //虹膜摄像头开（暂时不用）
  CMD_CAM_AWTK_IRIS_DEVICE_CLOSE       = 0x0221,         //虹膜摄像头关（业务发送，初始化AIServer人脸虹膜采集流程）
  CMD_CAM_FACE_RESULT_SUCCESS          = 0x0222,          //人脸采集成功
  CMD_CAM_FACE_RESULT_FAIL             = 0x0223,          //人脸采集失败
  CMD_CAM_IRIS_RESULT_SUCCESS          = 0x0224,          //虹膜采集成功
  CMD_CAM_IRIS_RESULT_FAIL             = 0x0225,           //虹膜采集失败

  CMD_COMMAND_HW_CMDSTART = 0x0300,                                 // 下位机控制 起始cmd
  CMD_COMMAND_HW_CONTROL = CMD_COMMAND_HW_CMDSTART + 1,             // 流程控制（开始、结束）
  CMD_COMMAND_ALGO_DETECT_SUCCEED = CMD_COMMAND_HW_CMDSTART + 2,    // 车窗算法检测到车窗事件
  CMD_COMMAND_LIGHT_CONTROL = CMD_COMMAND_HW_CMDSTART + 3,          // 状态灯控制
  CMD_COMMAND_LIFTER_STEPS = CMD_COMMAND_HW_CMDSTART + 4,           // 升降机高度相关：左舵上报/右舵控制
  CMD_COMMAND_PASSENGER_NUM = CMD_COMMAND_HW_CMDSTART + 5,          // 乘车人数申报
  CMD_COMMAND_ROLLBACKBTN_STATUS = CMD_COMMAND_HW_CMDSTART + 6,     // 按下回退按钮事件
  CMD_COMMAND_GATHER_EGG_INTO_PLACE = CMD_COMMAND_HW_CMDSTART + 7,  // 采集蛋伸出到位事件
  CMD_COMMAND_ALARM_LIGHT_EVENT = CMD_COMMAND_HW_CMDSTART + 8,      // 设备报警码上报
  CMD_COMMAND_HARDWARE_EGG_STATUS = CMD_COMMAND_HW_CMDSTART + 9,    // 下位机状态上报（定时）（升降机状态及采集蛋状态）
  CMD_COMMAND_LIFTER_MOTION_RISE = CMD_COMMAND_HW_CMDSTART + 10,    // 升降机运动控制上升
  CMD_COMMAND_LIFTER_MOTION_DESCENT = CMD_COMMAND_HW_CMDSTART + 11, // 升降机运动控制下降
  CMD_COMMAND_ALGO_START_DETECT = CMD_COMMAND_HW_CMDSTART + 12,     // 升降机通知算法开始检测
  CMD_COMMAND_ALGO_END_DETECT = CMD_COMMAND_HW_CMDSTART + 13,       // 升降机到位或超时后通知算法停止检测
  CMD_COMMAND_ALGO_TIMEOUT = CMD_COMMAND_HW_CMDSTART + 14,          // 算法超时广播，通知升降机
  CMD_COMMAND_GET_OCR_STATUS = CMD_COMMAND_HW_CMDSTART + 15,         //获取ocr状态
  CMD_COMMAND_HW_CONNECT_STATUS = CMD_COMMAND_HW_CMDSTART + 17,     // 下位机连接状态
  CMD_COMMAND_HW_FAR_FROM_CAR = CMD_COMMAND_HW_CMDSTART + 18,     // 升降机到位后上报离车相关参数

  CMD_COMMAND_OCR_CMDSTART = 0x0400,                              // OCR数据上报 起始cmd
  CMD_COMMAND_OCR_CONNECT_STATUS = CMD_COMMAND_OCR_CMDSTART + 1,  // ocr连接状态（连接、断开）
  CMD_COMMAND_OCR_DETECT_STATUS = CMD_COMMAND_OCR_CMDSTART + 2,   // 证件操作状态
  CMD_COMMAND_OCR_DATA_IMG_REPORT = CMD_COMMAND_OCR_CMDSTART + 3, // 证件数据

  CMD_COMMAND_IPC=0x0500,
  CMD_COMMAND_IPC_PROCESS_CRASH = 0x0500 + 1,
  CMD_COMMAND_PROCESS_RECOVER = 0x0500 + 2
} COMMANDCODE;


typedef struct _EventInfo {			//指令参数
	COMMANDCODE   cmd_code;
}EventInfo;


typedef struct _RecordEventDate{
    COMMANDCODE cmd;
    uint32_t iris_score;
}RecordEventDate_t;

typedef enum AWTK_VOICE_CommandCode {   
  CMD_CAM_AWTK_VOICE_BROADCAST_WELCOME                 = 0x0200,        //欢迎语音
  CMD_CAM_AWTK_VOICE_BROADCAST_WAIT                    = 0x0201,        //等待语音
  CMD_CAM_AWTK_VOICE_BROADCAST_VEHICLE_RETURN          = 0x0202,        //提示车辆语音
  CMD_CAM_AWTK_VOICE_BROADCAST_VWHICLE_PASS            = 0x0203,        //等待语音
  CMD_CAM_AWTK_VOICE_BROADCAST_TAKE_AWAY_PASSPORT      = 0x0204,        //证件读取成功语音
  CMD_CAM_AWTK_VOICE_BROADCAST_SWIPE_PASSPORT          = 0x0205,        //证件读取失败语音
  CMD_CAM_AWTK_VOICE_BROADCAST_STOP_MOVE               = 0x0206,        //请勿移动证件语音
  CMD_CAM_AWTK_VOICE_BROADCAST_STAY_AWAY               = 0x0207,        //请远离语音
  CMD_CAM_AWTK_VOICE_BROADCAST_LOOK_CAMERA             = 0x0208,        //看镜头语音
  CMD_CAM_AWTK_VOICE_BROADCAST_LICENSE_REC_FAIL        = 0x0209,        //提示获取车辆信息失败语音
  CMD_CAM_AWTK_VOICE_BROADCAST_LICENSE_NOT_FILED       = 0x020a,        //车牌未备案
  CMD_CAM_AWTK_VOICE_BROADCAST_IRIS_REC_FAILED          = 0x020b,       //虹膜失败语音
  CMD_CAM_AWTK_VOICE_BROADCAST_GLASSES                 = 0x020c,        //摘下眼镜语音
  //CMD_CAM_AWTK_VOICE_BROADCAST_GET_CEHICLE_INFO        = 0x020d, 
  CMD_CAM_AWTK_VOICE_BROADCAST_FACE_RECFAILED          = 0x020e,        //人脸失败
  CMD_CAM_AWTK_VOICE_BROADCAST_EYES_OPEN               = 0x020f,        //请睁大眼睛语音
  CMD_CAM_AWTK_VOICE_BROADCAST_ENTER_NUM_OF_PEOPLE     = 0x0210,        //输入车内人数语音
  //CMD_CAM_AWTK_VOICE_BROADCAST_DRIVING_LICENSE         = 0x0211, 
  CMD_CAM_AWTK_VOICE_BROADCAST_DEVICE_FAILURE          = 0x0212,        //提示设备异常语音
  CMD_CAM_AWTK_VOICE_BROADCAST_COME_CLOSE              = 0x0213,        //请靠近语音
  CMD_CAM_AWTK_VOICE_BROADCAST_CLOSE                   = 0x0214,        //通道关闭,暂停服务
  CMD_CAM_AWTK_VOICE_BROADCAST_CAED_READ_FAILED        = 0x0215,        //证件读取失败语音
  CMD_CAM_AWTK_VOICE_BROADCAST_CARD_EXPIRED            = 0x0216,        //提示卡过期页面语音
  //CMD_CAM_AWTK_VOICE_BROADCAST_ARTIFICIAL              = 0x0217, 
  CMD_CAM_AWTK_VOICE_BROADCAST_FACE_COVERING           = 0x0218,        //摘下面罩语音
  CMD_CAM_AWTK_VOICE_BROADCAST_MASK                    = 0x0219,        //摘下口罩语音
  CMD_CAM_AWTK_VOICE_BROADCAST_ROLL_DOWN_WINDOW        = 0x021a,         //下降车窗语音
  CMD_CAM_AWTK_VOICE_BROADCAST_PSG_ROLL_DOWN_WINDOW = 0x021b,     //乘客摇下车窗语音
  CMD_CAM_AWTK_VOICE_BROADCAST_PSG_ROKER_UP_DOWN  = 0x021c,              //乘客摇杆升降上下采集虹膜
  CMD_CAM_AWTK_VOICE_BROADCAST_SWIPE_IDCARD = 0x021d,                           //刷证失败，提示旅客按照图示刷取ID卡
}awtk_voice_comman_code;


typedef struct _VoiceRecordEventDate{
    awtk_voice_comman_code cmd;
}VoiceEventDate_t;



#endif